/**
 * 退款记录管理
 */
import request from '/@/utils/request';

export function readAllRefundRecord(params?: any) {
  return request({
    url: 'refund-records',
    method: 'get',
    params
  });
}

export function deleteRefundRecord(id: string) {
  return request({
    url: `refund-records/${id}`,
    method: 'delete'
  });
}

export function queryRefundStatus(id: string) {
  return request({
    url: `refund-records/${id}/query-status`,
    method: 'post'
  });
}
